package com.yex.dao;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.yex.entity.BankEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 银行卡
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-12-26 13:49:09
 */
public interface BankDao extends BaseMapper<BankEntity> {

    Integer updateBank(@Param("id") String id,@Param("userId") Integer userId);

    List<BankEntity> selectBankByUserId(@Param("userId") Integer userId);

    List<Map<String,Object>> selectPageFilter(Page<Map<String,Object>> page, String filter);

    List<Map<String,Object>> selectBankByMap(@Param("userId") Integer userId);

}
